package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * Created by ChenYong on 2017-04-13.
 * <br>
 * 学习资料列表的请求参数。
 */
public class LearnFileDataListParam extends Page2Param {
    /**
     * 创建人
     */
    @Length(min = Constants.VALUE_0, max = Constants.VALUE_50, message = "创建人的长度在0至50个字之间")
    private String learnCreatePerson;
    /**
     * 资料标题
     */
    @Length(min = Constants.VALUE_0, max = Constants.VALUE_500, message = "资料标题的长度在0至500个字之间")
    private String learnName;
    /**
     * 资料类型
     */
    @Pattern(regexp = Constants.INDUSTRY_CODE_EMPTY_RE, message = "资料类型由“一个大写字母+数字”组成，最多不超过10个字符")
    private String learnType;

    /**
     * 默认构造器。
     */
    public LearnFileDataListParam() {
        super();
    }

    public String getLearnCreatePerson() {
        return learnCreatePerson;
    }

    public void setLearnCreatePerson(String learnCreatePerson) {
        this.learnCreatePerson = learnCreatePerson;
    }

    public String getLearnName() {
        return learnName;
    }

    public void setLearnName(String learnName) {
        this.learnName = learnName;
    }

    public String getLearnType() {
        return learnType;
    }

    public void setLearnType(String learnType) {
        this.learnType = learnType;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("LearnFileDataListParam{");
        sb.append("startDate='").append(startDate).append('\'');
        sb.append(", learnCreatePerson='").append(learnCreatePerson).append('\'');
        sb.append(", iDisplayStart=").append(iDisplayStart);
        sb.append(", sEcho=").append(sEcho);
        sb.append(", endDate='").append(endDate).append('\'');
        sb.append(", learnName='").append(learnName).append('\'');
        sb.append(", iDisplayLength=").append(iDisplayLength);
        sb.append(", iColumns=").append(iColumns);
        sb.append(", learnType='").append(learnType).append('\'');
        sb.append(", iSortingCols=").append(iSortingCols);
        sb.append('}');
        return sb.toString();
    }
}